package UIFree.controls.combobox
{
	import UIFree.controls.uif_label;
	import UIFree.uif_component;
	
	import flash.events.MouseEvent;

	public class uif_cbitem extends uif_label
	{
		public function uif_cbitem(parent:uif_component, a_label: String, ax:int=0, ay:int=0, awidth:int=0, aheight:int=0, styleClass:String='') {
			super(parent, ax, ay, awidth, aheight, styleClass);
			text = a_label;
			
			addEventListener(MouseEvent.MOUSE_OVER, doOver);
			addEventListener(MouseEvent.MOUSE_OUT, doOut);
		}
		
		protected function doOver(e: MouseEvent): void {
			fx('light', light, 2, null, 50, 100).start();
		}

		protected function doOut(e: MouseEvent): void {
			fx('light', light, 1).start();
		}
	}
}